package cn.tyf.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
@PropertySource("classpath:const.properties")
@Data
public class ConstAutoConfig {

   private   String DEVICE_FLAG;
   private  String API_KEY;                     // 设备api-key
   private  String DEVICE_ID;                   // 设备id号
   private  String CODE;                        //验证码
   private  String WX_URL;
   private  String WX_APPID;
   private  String WX_SECRET;
   private  String WX_GRANT_TYPE;
   private  String BASE;
   private  String DEVICE_URL;
   private  String ExcelDowPath;
   private  String UserLogin;
   private  String UserType;


   public  String getDeviceFlag() {
      return DEVICE_FLAG;
   }
   @Value("${DEVICE_FLAG}")
   public  void setDeviceFlag(String deviceFlag) {
      this.DEVICE_FLAG = deviceFlag;
   }

   public  String getApiKey() {
      return API_KEY;
   }
   @Value("${API_KEY}")
   public  void setApiKey(String apiKey) {
      this.API_KEY = apiKey;
   }

   public  String getDeviceId() {
      return DEVICE_ID;
   }
   @Value("${DEVICE_ID}")
   public  void setDeviceId(String deviceId) {
      this.DEVICE_ID = deviceId;
   }

   public  String getCODE() {
      return CODE;
   }
   @Value("${CODE}")
   public  void setCODE(String cooe) {
      this.CODE = cooe;
   }

   public  String getWxUrl() {
      return WX_URL;
   }
   @Value("${WX_URL}")
   public  void setWxUrl(String wxUrl) {
      this.WX_URL = wxUrl;
   }

   public  String getWxAppid() {
      return WX_APPID;
   }
   @Value("${WX_APPID}")
   public  void setWxAppid(String wxAppid) {
      this.WX_APPID = wxAppid;
   }

   public  String getWxSecret() {
      return WX_SECRET;
   }
   @Value("${WX_SECRET}")
   public  void setWxSecret(String wxSecret) {
      this.WX_SECRET = wxSecret;
   }

   public  String getWxGrantType() {
      return WX_GRANT_TYPE;
   }
   @Value("${WX_GRANT_TYPE}")
   public  void setWxGrantType(String wxGrantType) {
      this.WX_GRANT_TYPE = wxGrantType;
   }

   public String getBASE() {
      return BASE;
   }
   @Value("${BASE}")
   public void setBASE(String BASE) {
      this.BASE = BASE;
   }

   public String getDEVICE_URL() {
      return DEVICE_URL;
   }
   @Value("${DEVICE_URL}")
   public void setDEVICE_URL(String DEVICE_URL) {
      this.DEVICE_URL = DEVICE_URL;
   }

   public String getExcelDowPath() {
      return ExcelDowPath;
   }
   @Value("${ExcelDowPath}")
   public void setExcelDowPath(String excelDowPath) {
      ExcelDowPath = excelDowPath;
   }

   public String getUserLogin() {
      return UserLogin;
   }
   @Value("${UserLogin}")
   public void setUserLogin(String userLogin) {
      UserLogin = userLogin;
   }

   public String getUserType() {
      return UserType;
   }
   @Value("${UserType}")
   public void setUserType(String userType) {
      UserType = userType;
   }

}
